package com.sz.youban.dt.entity.terminal;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 手机通讯录信息
 * </p>
 *
 * @author liyang
 * @since 2017-06-05
 */
@TableName("dt_tel_list")
//@Component
public class DtTelList extends Model<DtTelList> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * app登录用户id
     */
	@TableField("user_id")
	private Integer userId;
	/**
	 * app登录用户手机号
	 */
	@TableField("app_phone")
	private String appPhone;
    /**
     * 联系人姓名
     */
	@TableField("link_man")
	private String linkMan;
    /**
     * 联系人手机号
     */
	private String phone;
    /**
     * 渠道0:android,1:ios
     */
	private Integer channel;
    /**
     * 时间戳
     */
	private Date tsp;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAppPhone() {
		return appPhone;
	}

	public void setAppPhone(String appPhone) {
		this.appPhone = appPhone;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getLinkMan() {
		return linkMan;
	}

	public void setLinkMan(String linkMan) {
		this.linkMan = linkMan;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getChannel() {
		return channel;
	}

	public void setChannel(Integer channel) {
		this.channel = channel;
	}

	public Date getTsp() {
		return tsp;
	}

	public void setTsp(Date tsp) {
		this.tsp = tsp;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "DtTelList{" +
				"id=" + id +
				", userId=" + userId +
				", appPhone='" + appPhone + '\'' +
				", linkMan='" + linkMan + '\'' +
				", phone='" + phone + '\'' +
				", channel=" + channel +
				", tsp=" + tsp +
				'}';
	}
}
